package com.zxl.fanctory;


public class OperatorFanctory {
	
	public static Operation createOperator(int operator){
		Operation ope = null;
		switch (operator) {
		case 1:
			ope = new OperationAdd();
			break;
		case 2:
			ope = new OperationSub();
			break;
		case 3:
					
			break;
		case 4:
			
			break;
		default:
			break;
		}
		return ope;
	}
}
